package LoginPackage;

import org.testng.annotations.Test;
import PagePackage.MyPageFactory;
import PagePackage.teamsPage;

import org.testng.annotations.Test;

public class LeaguesSearch extends TestBaseClass {
	

	@Test (priority=0)
	public void AdminSearchSchoolByName() {
	goToMainPage();
	checkPage()
	.loginAs(adminEmail, adminPassword)
	.clickschooltab()
	.findSchoolbyName("Basketball University")
	.clickSearch()
	.scrollAndClickSchool(0, 0, "//*[contains(text(),'Basketball University')]")
	.logout();	
		
	}
	@Test (priority=1)
	public void AdminSearchSchoolByCity() {
	goToMainPage();
	checkPage()
	.loginAs(adminEmail, adminPassword)
	.clickschooltab()
	.findSchoolbyCity("Brooklyn")
	.clickSearch()
	.clickonFirstResult()
	.checkCity("Brooklyn")
		.cancelSchool()
		.logout();
		
	}
	

}
